package com.hd.trans.utils.preference

import com.hd.trans.camerax.CameraLightMode
import com.hd.trans.homefun.FreeTrialCount
import com.hd.trans.homefun.FreeTrialTime

object Preferences {
    var isOffline: Boolean by Preference("isOffline",false)

    /**是否显示罗马拼音提示*/
    var isShowPinyinTips:Boolean by Preference("isShowPinyinTips",true)
    /**是否开启拼音*/
    var isPinyinEnable:Boolean by Preference("isPinyinEnable",true)
    /**文本翻译免费次数*/
    var textTransFreeTimes: FreeTrialCount by Preference("textTransFreeTimes", FreeTrialCount())
    /**语音翻译免费时长*/
    var voiceTransFreeTime: FreeTrialTime by Preference("voiceTransFreeTime", FreeTrialTime())
    /**同声传译免费时长*/
    var simulTransFreeTime: FreeTrialTime by Preference("simulTransFreeTime", FreeTrialTime())
    /**图片翻译免费次数*/
    var pictureTransFreeTime: FreeTrialCount by Preference("pictureTransFreeTime", FreeTrialCount())
    /**出国急救包免费次数*/
    var firstAidKitFreeTime: FreeTrialCount by Preference("firstAidKitFreeTime", FreeTrialCount())
    /**网页翻译免费次数*/
    var webTransFreeTime: FreeTrialCount by Preference("webTransFreeTime", FreeTrialCount())
    /**取词翻译免费次数*/
    var wordTransFreeTime: FreeTrialCount by Preference("wordTransFreeTime", FreeTrialCount())
    /**闪光灯模式*/
    internal var flashLightMode: CameraLightMode by Preference("flashLightMode", CameraLightMode.AUTO)
    /**相机自动检测物体边缘*/
    internal var cameraBorderDetect:Boolean by Preference("cameraBorderDetect",true)
    /**是否分屏*/
    internal var isSplitScreen:Boolean by Preference("isSplitScreen",true)
    /**相册里最新一张图片路径*/
    internal var latestPhotoPath:String by Preference("latestPhotoPath","")
    /**同声传译语音播报*/
    internal var simultaneousVoicePlay:Boolean by Preference("simultaneousVoicePlay",false)
    internal var simultaneousVoicePlayTips:Boolean by Preference("simultaneousVoicePlayTips",true)
}